Fixed a bug in previous commit

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>