If you don't want this set $config['process_whole_template'] = true; in your config.php
config.php wrote:
# In versions of CMS Made Simple prior to version 1.4, the page template was processed
# in it's entirety. This behaviour was later changed to process the head portion of the
# page template after the body. ...