Strange, conbined single script does not work