fixed an issue with compiling multiple files