You should be able to if the castling conditions are met. Do you have a specific chance and move number where you weren't able to?
Hey Martin, can't you get rid of this guy?