Fix graphics windows calls