Fixed gene clipping fuction