Fix improper position for createStatement method