Fixed mouse paint bug and made the error function actually bound