fixed issues with comments after # statements