Fix resizing bugs when displaying error message
Update build