Bug Fix compiling of scripts