fixing negative aspect ratio