fixed bug delete and file actions