fixed minor errors to prevent rendering