workaround for crashing bug