Bug fixed bool not initialized as false