Fixed errors in declaration