Fixed railcraft issues