Fixed modal bug