Fix small bug in imagine provider