Fixed an issue when trying to stage files