Fixes validation error