fix bug diagonal