fixed copy-paste error and other in compile issues