Removed assert that is in wrong place