made the heart bar work correctly