Fixed bug in process