Fixed writeaccess argument