Fixed has_one excessive query.