solve bug and screen.h warnings