Added some code to set the grab mode. Not sure if it will work