Prevent some errors