Weird err bug fix