Fix for the QPicker so it stops crashing.