fix writability callback