Fix for writing storage on android devices