Fix broken assert

Had horizontal and vertical mixed up