Yeah, this might be a bug. And I think you should change the code below these comments, you're checking if the side is the server and opening a GUI. As I remember, worldObj.isRemote returns true if the side being used is the client...