correct an exception
make sure to use pixel width/height for validation