fixes some errors from last night