compile Bugs fixed