refixes bug