fixed create window declaration