Fixing unstagged error