File API bug