Fixed all the bugs that appeard at compile time