Fixes error with creating schema